package core.actions;

import java.awt.Point;

import core.*;
import core.units.Unit;
import core.weapons.*;


public class FireMissile extends Action {
	
	public FireMissile(){
		super();
		name="Missile";
		imageName="iconHoming.png";
		color = ActionConstants.attackColor;
		nameChar='H';
		needDir=true;
		energyCost=50;
		value=100;
	}
	
	public void execute(){
		//Player master = PlayerIdHandler.getPlayer(masterId);
		main.attacks.add(new Missile(master.getHero().getX(), master.getHero().getY(), master, inputDir));
		System.out.println("Missile Fired");
		hasDir=false;
	}
}
